var express = require('express');
var dataCtrl=require('../controller/user.controlller');
var router = express.Router();

/* GET users listing. */
// router.get('/', function(req, res, next) {
//   res.send('respond with a resource');
// });
router.post('/',dataCtrl.create);
router.put('/:id',dataCtrl.update);
router.get('/:id',dataCtrl.get2);
router.post('/search',dataCtrl.get);
router.delete('/:id',dataCtrl.delete);
router.post('/list',dataCtrl.list);
router.post('/removes',dataCtrl.removes);


module.exports = router;
